<!DOCTYPE html>

<html>
<head>
<title>#{get 'title' /}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="public/images/favicon.png">
<link rel="stylesheet" type="text/css" media="screen"
	href="@{'/public/stylesheets/main.css'}">

<script src="@{'/public/javascripts/jquery-1.4.2.min.js'}"
	type="text/javascript" charset="utf-8"></script>
<script src="@{'/public/fancybox/jquery.fancybox-1.3.1.js'}"
	type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css"
	href="@{'/public/fancybox/jquery.fancybox-1.3.1.css'}" media="screen" />
<!-- 目录超过两级需要重新route -->
<script src="@{'/public/javascripts/func.js'}" type="text/javascript"
	charset="utf-8"></script>

</head>
<body>
<div id="toolbar">#{if session.get("email")} <img
	src="public/images/favicon.png" /> Hello,${session.get("email")} <a
	id="center" href="dashboard${user.id}">「个人中心」</a> <a id="show"
	href="show${user.id}">「个人主页」</a> <a id="appdash" href="appdashboard${user.id}"
	onClick="return false">「App管理」</a> <a href="logout">注销</a> #{/if}
#{else}
<form action="login" method="post"><img
	src="public/images/favicon.png" /><input id="email" type="text"
	name="email" value="dhl@oopsplay.org" /> <input id="password"
	type="password" name="password" value="123456" /> <!-- 非Ajax下工作<input type="submit" value="登录" /> -->
<a id="login" href="#" onClick="return false">登录</a> <!-- 在这里出现过chrome的兼容性问题，onClick="return false解决" -->
<a id="join" href="join" onClick=
	returnfalse;
>加入</a></form>
#{/else}</div>
#{doLayout /}
</body>
</html>
